import { createRouter, createWebHashHistory } from 'vue-router'
import Login from "../views/Login.vue";
import Index from "../views/Index.vue";
import NoticeGroup from "../views/daily/notice/NoticeGroup.vue";
import NoticeManage from "../views/daily/notice/NoticeManage.vue";
import NoticeTotal from "../views/daily/notice/NoticeTotal.vue";
import ChamberInfo from "../views/daily/chamber/ChamberInfo.vue";
import ChamberReserve from "../views/daily/chamber/ChamberReserve.vue";
import ChamberReserveM from "../views/daily/chamber/ChamberReserveM.vue";
import ChamberSign from "../views/daily/chamber/ChamberSign.vue";
import RepairApply from "../views/daily/repair/RepairApply.vue";
import RepairApplyM from "../views/daily/repair/RepairApplyM.vue";
import RepairResource from "../views/daily/repair/RepairResource.vue";
import DishPay from "../views/daily/dish/DishPay.vue";
import DishTotal from "../views/daily/dish/DishTotal.vue";
import DishManage from "../views/daily/dish/DishManage.vue";
import OfficeApply from "../views/daily/office/OfficeApply.vue";
import HomePage from "../views/HomePage";
//人事
import Contractors from "@/views/people/Contractors";
import External from "@/views/people/External";
import Contractfiling from "@/views/people/Contractfiling";
import Holiday from "@/views/people/Holiday";
import Cards from "@/views/people/Cards";
import Brcards from "@/views/people/Brcards";
import Settime from "@/views/people/Settime";
import Gift from "@/views/people/Gift";
import Exit from "@/views/people/Exit";
import Attendance from "@/views/people/Attendance";
import Overtime from "@/views/people/Overtime";
import Gopolice from "@/views/people/Gopolice";
import Leave from "@/views/people/Leave";
import Cancellation from "@/views/people/Cancellation";
import Wages from "@/views/people/Wages";
import Connect from "@/views/people/Connect";
import Leavepost from "@/views/people/Leavepost";
import DailyApply from "../views/reimbursement/DailyApply.vue";
import SortieApply from "../views/reimbursement/SortieApply.vue";
import PayApply from "../views/reimbursement/PayApply.vue";
import OvertimeApply from "../views/reimbursement/OvertimeApply.vue";
import CondoleApply from "../views/reimbursement/CondoleApply.vue";
import HireApply from "../views/reimbursement/HireApply.vue";
import EntertainTotal from "../views/reimbursement/EntertainTotal.vue";
import TimeCardAnalyze from "../views/summary/TimeCardAnalyze.vue";
import RepairCardAnalyze from "../views/summary/RepairCardAnalyze.vue";
import DishCardAnalyze from "../views/summary/DishCardAnalyze.vue";
import Examine from "../views/mine/Examine.vue";
import Approve from "../views/mine/Approve.vue";
import Study from "../views/mine/info/Study.vue";
import Parent from "../views/mine/info/Parent.vue";
import Contract from "../views/mine/info/Contract.vue";
import TimeCard from "../views/mine/info/TimeCard.vue";
import DoorCard from "../views/mine/info/DoorCard.vue";
import HolidayInfo from "../views/mine/info/HolidayInfo.vue";
import Information from "@/views/mine/info/Information.vue";
import Docu from "@/views/mine/info/Docu.vue";
import Canxellationaudit from "@/views/people/Canxellationaudit";
import Exitaudit from "@/views/people/Exitaudit";
import Gopoliceaudit from "@/views/people/gopoliceaudit";
import Leaveaudit from "@/views/people/Leaveaudit";
import Overtimeaudit from "@/views/people/Overtimeaudit";
import Excontracts from "@/views/people/Excontracts";
import Giftaudit from "@/views/people/Giftaudit";
import Information1 from "@/views/mine/info/Information1.vue";
import Index1 from "@/views/Index1.vue";
import DailyApplyUser from "../views/reimbursement/DailyApplyUser.vue";
import CondoleApplyUser from "../views/reimbursement/CondoleApplyUser.vue";
import HireApplyUser from "../views/reimbursement/HireApplyUser.vue";
import OvertimeApplyUser from "../views/reimbursement/OvertimeApplyUser.vue";
import PayApplyUser from "../views/reimbursement/PayApplyUser.vue";
import SortieApplyUser from "../views/reimbursement/SortieApplyUser.vue";
import OfficeApply1 from "@/views/daily/office/OfficeApply1.vue";
import HomePage1 from "@/views/HomePage1.vue";
const routes = [
  {
    path: '/',
    name: 'login',
    component: Login
  },
  /////////////日常////////////////////
  {
    path:'/index',
    component: Index,
    children:[
        //通告管理
      {
        path:'/index/notice/group',
        component:NoticeGroup
      },
      {
        path: '/index/notice',
        component: NoticeManage
      },
      {
        path:'/index/notice/total',
        component:NoticeTotal
      },
        //会议管理
      {
        path: '/index/chamber',
        component: ChamberInfo
      },
      {
        path: '/index/chamber/reserve',
        component: ChamberReserve
      },
      {
        path: '/index/chamber/reserveM',
        component: ChamberReserveM
      },
      {
        path:'/index/chamber/sign',
        component: ChamberSign
      },
        //维修管理
      {
        path: '/index/repair/apply',
        component:RepairApply,
      },
      {
        path: '/index/repair/applyM',
        component: RepairApplyM,
      },
      {
        path: '/index/repair/resource',
        component:RepairResource
      },
        //伙食管理
      {
        path:'/index/dish/pay',
        component: DishPay
      },
      {
        path:'/index/dish/total',
        component: DishTotal
      },
      {
        path: '/index/dish/dishM',
        component: DishManage
      },
        //办公用品
      {
        path: '/index/office/apply',
        component:OfficeApply
      }
    ]
  },
  /////////////人事////////////////////
  {
    path: '/people',
    component: Index,
    children:[
      {
        path:'/people/homepage',
        component:HomePage
      },
      {
        path:'/people/contractors',
        component:Contractors
      },
      {
        path:'/people/contractfiling',
        component:Contractfiling
      },
      {
        path:'/people/external',
        component:External
      },
      {
        path:'/people/holiday',
        component:Holiday
      },
      {
        path:'/people/cards',
        component:Cards
      },
      {
        path:'/people/brcards',
        component:Brcards
      },
      {
        path:'/people/settime',
        component:Settime
      },
      {
        path:'/people/gift',
        component:Gift
      },
      {
        path:'/people/exit',
        component:Exit
      },
      {
        path:'/people/exitaudit',
        component:Exitaudit
      },
      {
        path:'/people/attendance',
        component:Attendance
      },
      {
        path:'/people/overtime',
        component:Overtime
      },
      {
        path:'/people/overtimeaudit',
        component:Overtimeaudit
      },
      {
        path:'/people/gopolice',
        component:Gopolice
      },
      {
        path:'/people/gopoliceaudit',
        component:Gopoliceaudit
      },
      {
        path:'/people/leave',
        component:Leave
      },
      {
        path:'/people/leaveaudit',
        component:Leaveaudit
      },
      {
        path:'/people/cancelltion',
        component:Cancellation
      },
      {
        path:'/people/cancelltionaudit',
        component:Canxellationaudit
      },
      {
        path:'/people/wages',
        component:Wages
      },
      {
        path:'/people/connect',
        component:Connect
      },
      {
        path:'/people/leavepost',
        component:Leavepost
      },
      {
        path: '/people/excpntracts',
        component: Excontracts
      },{
        path: '/people/giftaudit',
        component: Giftaudit
      }
    ]
  },
  /////////////报销////////////////////
  {
    path:'/reimbursement',
    component: Index,
    children: [
        //日常报销申请
      {
        path: '/reimbursement/daily/apply',
        component: DailyApply
      },
        //出差报销申请
      {
        path: '/reimbursement/sortie/apply',
        component: SortieApply
      },
        //支付申请
      {
        path: '/reimbursement/pay/apply',
        component: PayApply
      },
        //员工加班费补贴申请
      {
        path: '/reimbursement/overtime/apply',
        component: OvertimeApply
      },
        //慰问金申请
      {
        path: '/reimbursement/condole/apply',
        component: CondoleApply
      },
        //外聘人员费申请
      {
        path: '/reimbursement/hire/apply',
        component: HireApply
      },
        //招待费月汇总
      {
        path: '/reimbursement/entertain/total',
        component: EntertainTotal
      }
    ]
  },
  /////////////汇总////////////////////
  {
    path: '/analyze',
    component: Index,
    children: [
        //出勤汇总分析
      {
        path: '/analyze/timeCard',
        component:TimeCardAnalyze
      },
        //维修汇总分析
      {
        path: '/analyze/repairCard',
        component: RepairCardAnalyze
      },
      //用餐汇总分析
      {
        path: '/analyze/dishCard',
        component: DishCardAnalyze
      }
    ]
  },
  /////////////我的////////////////////
  {
    path: '/profile',
    component: Index,
    children: [
        //待审批
      {
        path: '/profile/examine',
        component: Examine
      },
        //已审批
      {
        path: '/profile/approve',
        component: Approve
      },
        //学历信息
      {
        path: '/profile/study',
        component: Study
      },
        //直系亲属
      {
        path: '/profile/parent',
        component: Parent
      },
        //合同信息
      {
        path: '/profile/contract',
        component: Contract
      },
        //节假日信息
      {
        path: '/profile/holiday',
        component: HolidayInfo
      },
        //出勤信息
      {
        path: '/profile/timeCard',
        component: TimeCard
      },
        //我的门卡
      {
        path: '/profile/doorCard',
        component: DoorCard
      },
        //基本信息
      {
        path:'/profile/info',
        component: Information1
      },
        //证件信息
      {
        path:'/profile/document',
        component: Docu
      }
    ]
  },
  {
    path: '/user',
    component: Index1,
    children: [
      //学历信息
      {
        path: '/user/profile/study',
        component: Study
      },
      //直系亲属
      {
        path: '/user/profile/parent',
        component: Parent
      },
      //合同信息
      {
        path: '/user/profile/contract',
        component: Contract
      },
      //节假日信息
      {
        path: '/user/profile/holiday',
        component: HolidayInfo
      },
      //出勤信息
      {
        path: '/user/profile/timeCard',
        component: TimeCard
      },
      //我的门卡
      {
        path: '/user/profile/doorCard',
        component: DoorCard
      },
      //基本信息
      {
        path:'/user/profile/info',
        component: Information
      },
      //证件信息
      {
        path:'/user/profile/document',
        component: Docu
      }, //日常报销申请
      {
        path: '/user/daily/apply',
        component: DailyApplyUser
      },
      //出差报销申请
      {
        path: '/user/sortie/apply',
        component: SortieApplyUser
      },
      //支付申请
      {
        path: '/user/pay/apply',
        component: PayApplyUser
      },
      //员工加班费补贴申请
      {
        path: '/user/overtime/apply',
        component: OvertimeApplyUser
      },
      //慰问金申请
      {
        path: '/user/condole/apply',
        component: CondoleApplyUser
      },
      //外聘人员费申请
      {
        path: '/user/hire/apply',
        component: HireApplyUser
      },
      {
        path:'/user/notice/group',
        component:NoticeGroup
      },
      {
        path: '/user/notice',
        component: NoticeManage
      },
      {
        path:'/user/notice/total',
        component:NoticeTotal
      },
      //会议管理
      {
        path: '/user/chamber/reserve',
        component: ChamberReserve
      },
      {
        path: '/user/chamber/reserveM',
        component: ChamberReserveM
      },
      {
        path:'/user/chamber/sign',
        component: ChamberSign
      },
      //维修管理
      {
        path: '/user/repair/apply',
        component:RepairApply,
      },
      {
        path: '/user/repair/resource',
        component:RepairResource
      },
      //伙食管理
      {
        path:'/user/dish/pay',
        component: DishPay
      },
      {
        path:'/user/dish/total',
        component: DishTotal
      },
      {
        path: '/user/dish/dishM',
        component: DishManage
      },
      //办公用品
      {
        path: '/user/office/apply',
        component:OfficeApply1
      },
        //人事
      {
        path:'/user/people/holiday',
        component:Holiday
      },
      {
        path:'/user/people/cards',
        component:Cards
      },
      {
        path:'/user/people/brcards',
        component:Brcards
      },
      {
        path:'/user/people/gift',
        component:Gift
      },
      {
        path:'/user/people/exit',
        component:Exit
      },
      {
        path:'/user/people/overtime',
        component:Overtime
      },
      {
        path:'/user/people/gopolice',
        component:Gopolice
      },
      {
        path:'/user/people/leave',
        component:Leave
      },
      {
        path:'/user/people/connect',
        component:Connect
      },
      {
        path:'/user/people/leavepost',
        component:Leavepost
      },
      {
        path: '/user/people/giftaudit',
        component: Giftaudit
      },
      {
        path:'/user/people/homepage',
        component:HomePage1
      },
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
